<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="../templates/principal.xhtml">

    <ui:define name="head">
        <script type="text/javascript">
            function handleListaRequest(xhr, status, args) {
                if (args.validationFailed || !args.loggedIn) {
                    PF('propostaDialog').show();
                } else {
                    PF('propostaDialog').hide();
                }
                PF('propostaDialog').toggleMaximize();
            }

            
        </script>
    </ui:define>

    <ui:define name="content" id="content">
        <h:form id="frmProposta">
            <p:panel id="panel" header="Bem Vindo ao Cadastro de Nova Proposta">
                <p:growl id="messages" life="5000" />

                <p:dataTable id="tabProposta" widgetVar="wtabProposta" var="proposta" value="#{propostaBean.lazyModel}" 
                             lazy="true" paginator="true" rows="12" paginatorPosition="top"
                             emptyMessage="Nenhum Registro Retornado ..." filterEvent="enter" resizableColumns="true">

                    <f:facet name="header">
                        STATUS: 5 - Lista de Orgãos 
                    </f:facet>

                    <p:column headerText="Numero Proposta" sortBy="#{proposta.numProposta}" filterBy="#{proposta.numProposta}">
                        <div style="text-align: left;">
                            <h:outputText value="#{proposta.numProposta}" />
                        </div>
                    </p:column>
                    
                    <p:column headerText="Empreendimento" sortBy="#{proposta.idEmpreendimento.dscEmpreendimento}" filterBy="#{proposta.idEmpreendimento.dscEmpreendimento}">
                        <div style="text-align: left; ">
                            <h:outputText value="#{proposta.idEmpreendimento.dscEmpreendimento}" />
                        </div>
                    </p:column>

                    <p:column headerText="Assunto" sortBy="#{proposta.dscProposta}" filterBy="#{proposta.dscProposta}">
                        <div style="text-align: left; ">
                            <h:outputText value="#{proposta.dscProposta}" />
                        </div>
                    </p:column>
                    
                    <p:column headerText="Empresa" sortBy="#{proposta.idEmpresa.nomEmpresa}" filterBy="#{proposta.idEmpresa.nomEmpresa}">
                        <div style="text-align: left; ">
                            <h:outputText value="#{proposta.idEmpresa.nomEmpresa}" />
                        </div>
                    </p:column>

                    

                    <p:column headerText="Cliente Nome Fantasia/Sobrenome" sortBy="#{proposta.idCliente.nomFantasia}" filterBy="#{proposta.idCliente.nomFantasia}">
                        <div style="text-align: left; ">
                            <h:outputText value="#{proposta.idCliente.nomFantasia}" />
                        </div>
                    </p:column>

                    <p:column style="width: 150px;">
                        <h:panelGrid columns="4" styleClass="actions" cellpadding="0">
                            <p:commandButton id="selectButtonProposta" update=":frmProposta:panel :frmProposta:messages" 
                                             icon="ui-icon-search" title="Visualizar // Alterar Proposta" oncomplete="PF('propostaDialog').show(); PF('propostaDialog').toggleMaximize();">
                                <f:setPropertyActionListener value="#{proposta}" target="#{propostaBean.selectedProposta}" />
                                <f:setPropertyActionListener value="#{false}" target="#{propostaBean.ativa}" />
                            </p:commandButton>

                            <p:commandButton id="finalizarButtonProposta" update=":frmProposta:panel :frmProposta:messages" oncomplete="PF('confirmationFinalizar').show();"
                                             icon="ui-icon-note" title="Finalizar Etapa da Proposta">
                                <f:setPropertyActionListener value="#{proposta}" target="#{propostaBean.selectedProposta}" />

                            </p:commandButton>
                            
                            <p:commandButton id="excluirButtonProposta" update=":frmProposta:panel :frmProposta:messages" 
                                             icon="ui-icon-trash" title="Excluir Proposta" oncomplete="PF('confirmation').show();">
                                <f:setPropertyActionListener value="#{proposta}" target="#{propostaBean.selectedProposta}" />
                            </p:commandButton>
                        </h:panelGrid>
                    </p:column>

                </p:dataTable>

                <!-- DETALHES PROPOSTA - LISTA DE ORGAO -->
                <p:dialog id="dialog" header="Detalhes Proposta - Preenchimento dos Documentos Necessários" widgetVar="propostaDialog" resizable="true"
                          position="left,top" onHide="PF('propostaDialogCase').hide(); PF('propostaDialog').toggleMaximize(); PF('propostaDialogEstudo').hide();" maximizable="true">

                    <p:panel id="panelDetalhe" style="text-align: left; ">
                        <p:panelGrid id="display" style="text-align: left; width: 100%;">

                            <p:row>
                                <p:column colspan="4">
                                    <h:outputText value="Numero Proposta: #{propostaBean.selectedProposta.numProposta}" style="font-weight:bold;" />
                                </p:column>

                                <p:column>
                                    <p:commandButton id="selectButtonPropostaEstudo" value="Visualizar Estudo Inicial" update=":frmProposta:panelDetalheEstudo :frmProposta:messages" 
                                                     icon="ui-icon-search" title="Visualizar Proposta - Estudo Inicial" oncomplete="PF('propostaDialogEstudo').show(); PF('propostaDialogEstudo').toggleMaximize();" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Assunto:" />
                                </p:column>
                                <p:column>
                                    <h:outputText id="inDescricao" value="#{propostaBean.selectedProposta.dscProposta}" style="width:500px; font-weight:bold; " />
                                </p:column>

                                <p:column>
                                    <h:outputText value="Arquiteto:" />
                                </p:column>
                                <p:column colspan="2">
                                    <h:outputText id="inArquiteto" value="#{propostaBean.selectedProposta.idEmpreendimento.nomArquiteto}" style="width:300px; font-weight:bold; " />
                                </p:column>
                            </p:row>
                            
                            <p:row>
                                <p:column>
                                    <h:outputText value="Empresa:" />
                                </p:column>
                                <p:column colspan="4">
                                    <p:outputLabel id="inEmpresa" value="#{propostaBean.selectedProposta.idEmpresa.nomEmpresa}" style="width:800px; font-weight:bold; " />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Cliente:" />
                                </p:column>

                                <p:column>
                                    <h:outputText id="inCliente" value="#{propostaBean.selectedProposta.idCliente.nomFantasia}" 
                                                  style="width:500px; font-weight:bold; " />
                                </p:column>

                                <p:column>
                                    <h:outputText value="Data Proposta:" />
                                </p:column>

                                <p:column colspan="2">
                                    <h:outputText id="imDatAbert" value="#{propostaBean.selectedProposta.datProposta}" style="font-weight:bold;">
                                        <f:convertDateTime type="date" dateStyle="short" pattern="dd/MM/yyyy" />
                                    </h:outputText>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Endereços:" />
                                </p:column>

                                <p:column>
                                    <ui:repeat value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList}" var="end">
                                        <h:outputText value="#{end.codLogradouro.dscLogradouro}, #{end.numEndereco} #{end.dscComplemento} - " style="font-weight:bold;" />
                                    </ui:repeat>
                                </p:column>

                                <p:column>
                                    <h:outputText value="Cidade:" />
                                </p:column>

                                <p:column colspan="2">
                                    <h:outputText value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList.get(0).codLogradouro.codBairro.codCidade.dscCidade}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Contribuinte:" />
                                </p:column>

                                <p:column colspan="4">
                                    <ui:repeat value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList}" var="end">
                                        <h:outputText value="#{end.numContribuinte} - " style="font-weight:bold;" />
                                    </ui:repeat>
                                </p:column>
                            </p:row>

                            <p:row>
                                <p:column>
                                    <h:outputText value="Protocolado:" />
                                </p:column>

                                <p:column colspan="4">
                                    <p:selectOneRadio id="options" value="#{propostaBean.selectedProposta.propostaOrgao.protocolado}">  
                                        <f:selectItem itemLabel="SIM" itemValue="S" />  
                                        <f:selectItem itemLabel="NÃO" itemValue="N" />  
                                    </p:selectOneRadio>
                                </p:column>
                            </p:row>
                        </p:panelGrid>
                        <p:panelGrid id="display1" style="text-align: left; width: 100%;">
                            <f:facet name="header">
                                <p:row>
                                    <p:column colspan="3">ÓRGÃOS</p:column>
                                    <p:column rowspan="2">OBSERVAÇÕES</p:column>
                                </p:row>
                                <p:row>
                                    <p:column colspan="3">SEHAB</p:column>
                                </p:row>
                            </f:facet>

                            <p:row>
                                <p:column style="width: 15%;">
                                    <p:selectOneRadio id="options1" value="#{propostaBean.selectedProposta.propostaOrgao.alvaraAprovacao}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio>
                                </p:column>
                                <p:column colspan="2" style="width: 30%;">ALVARÁ DE APROVAÇÃO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs1}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options2" value="#{propostaBean.selectedProposta.propostaOrgao.alvaraExecucao}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">ALVARÁ DE EXECUÇÃO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs2}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options3" value="#{propostaBean.selectedProposta.propostaOrgao.alvaraTerraplanagem}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">ALVARÁ DE    TERRAPLENAGEM</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs3}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options4" value="#{propostaBean.selectedProposta.propostaOrgao.caieps}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">CAIEPS</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs4}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options5" value="#{propostaBean.selectedProposta.propostaOrgao.ctlu}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">CTLU</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs5}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options6" value="#{propostaBean.selectedProposta.propostaOrgao.ceusoDeclividade}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column rowspan="2">CEUSO</p:column>
                                <p:column>DECLIVIDADE</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs6}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options7" value="#{propostaBean.selectedProposta.propostaOrgao.ceusoElevacao}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column>ELEVAÇÃO TÉRREO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs7}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options8" value="#{propostaBean.selectedProposta.propostaOrgao.parsolo}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">PARSOLO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs8}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options9" value="#{propostaBean.selectedProposta.propostaOrgao.smdu}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">SMDU</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs9}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options10" value="#{propostaBean.selectedProposta.propostaOrgao.urbanismo}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">SP-URBANISMO (ANTIGA EMURB)</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs10}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options11" value="#{propostaBean.selectedProposta.propostaOrgao.smt}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">SMT</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs11}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options12" value="#{propostaBean.selectedProposta.propostaOrgao.siurbAtinge}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column rowspan="2">SIURB</p:column>
                                <p:column>ATINGE</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs12}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options13" value="#{propostaBean.selectedProposta.propostaOrgao.siurbNaoAtinge}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column>NÃO ATINGE</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs13}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options14" value="#{propostaBean.selectedProposta.propostaOrgao.iphan}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">IPHAN</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs14}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options15" value="#{propostaBean.selectedProposta.propostaOrgao.condephaat}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">CONDEPHAAT</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs15}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options16" value="#{propostaBean.selectedProposta.propostaOrgao.conpresp}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">CONPRESP</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs16}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options17" value="#{propostaBean.selectedProposta.propostaOrgao.cetesp}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">CETESB</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs17}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options18" value="#{propostaBean.selectedProposta.propostaOrgao.depaveLaa}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column rowspan="2">DEPAVE</p:column>
                                <p:column>LAA</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs18}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options19" value="#{propostaBean.selectedProposta.propostaOrgao.depaveTca}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column>TCA</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs19}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options20" value="#{propostaBean.selectedProposta.propostaOrgao.subprefeitura}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">SUBPREFEITURA</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs20}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options21" value="#{propostaBean.selectedProposta.propostaOrgao.alvaraExecucaoDemolicao}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">ALVARÁ DE EXECUÇÃO DE DEMOLIÇÃO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs21}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options22" value="#{propostaBean.selectedProposta.propostaOrgao.autoConclusao}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">AUTO DE CONCLUSÃO DE    DEMOLIÇÃO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs22}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options23" value="#{propostaBean.selectedProposta.propostaOrgao.alvaraStand}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">ALVARÁ DE STAND DE VENDAS</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs23}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options24" value="#{propostaBean.selectedProposta.propostaOrgao.alvaraDesdobro}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">ALVARÁ DE DESDOBRO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs24}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options25" value="#{propostaBean.selectedProposta.propostaOrgao.habite}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">HABITE-SE</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs25}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options26" value="#{propostaBean.selectedProposta.propostaOrgao.licencaFuncionamento}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">LICENÇA DE FUNCIONAMENTO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs26}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options27" value="#{propostaBean.selectedProposta.propostaOrgao.autoRegulizarizacao}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">AUTO DE REGULARIZAÇÃO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs27}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column colspan="4" styleClass="ui-widget-header">OBSERVAÇÕES</p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options29" value="#{propostaBean.selectedProposta.propostaOrgao.comar}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">COMAR</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs29}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options30" value="#{propostaBean.selectedProposta.propostaOrgao.decont}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">DECONT</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs30}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options31" value="#{propostaBean.selectedProposta.propostaOrgao.envoltorio}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column colspan="2">ENVOLTÓRIO DE VILA</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs31}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options32" value="#{propostaBean.selectedProposta.propostaOrgao.matriculaUnificacao}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column rowspan="2">MATRÍCULA</p:column>
                                <p:column>UNIFICAÇÃO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs32}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><p:selectOneRadio id="options33" value="#{propostaBean.selectedProposta.propostaOrgao.matriculaRetificacao}">
                                        <f:selectItem itemLabel="Triunfo" itemValue="T" />
                                        <f:selectItem itemLabel="Outro" itemValue="O" />
                                    </p:selectOneRadio></p:column>
                                <p:column>RETIFICAÇÃO</p:column>
                                <p:column><p:inputTextarea autoResize="false"  value="#{propostaBean.selectedProposta.propostaOrgao.obs33}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                        </p:panelGrid>

                        <p:commandButton value="Salvar" oncomplete="handleListaRequest(xhr, status, args)" rendered="#{!propostaBean.ativa}"
                                         icon="ui-icon-disk" actionListener="#{propostaBean.alterar}" />
                        <p:commandButton icon="ui-icon-closethick" value="Fechar" onclick="PF('propostaDialog').hide();" title="Fecha Janela Lista de Orgão!" />
                    </p:panel>
                </p:dialog>
                
                <!-- EXCLUIR PROPOSTA -->
                <p:dialog header="Confirma a Exclusão dessa Proposta: #{propostaBean.selectedProposta.dscProposta}?" widgetVar="confirmation">

                    <p:commandButton value="Sim" update=":frmProposta:panel :frmProposta:messages" process="@all" oncomplete="PF('confirmation').hide(),PF('propostaDialog').hide()"
                                     actionListener="#{propostaBean.excluir}" />
                    <p:commandButton value="Não" onclick="PF('confirmation').hide();" type="button" />

                </p:dialog>
                <!-- FINALIZAR PROPOSTA -->
                <p:dialog header="Confirma a Finalização dessa Etapa: #{propostaBean.selectedProposta.dscProposta}?" widgetVar="confirmationFinalizar">

                    <p:commandButton value="Sim" update=":frmProposta:panel :frmProposta:messages" process="@all" oncomplete="PF('confirmationFinalizar').hide()"
                                     actionListener="#{propostaBean.finalizarProposta}" />
                    <p:commandButton value="Não" onclick="PF('confirmationFinalizar').hide();" type="button" />

                </p:dialog>
                <!-- DETALHES PROPOSTA - ESTUDO INICIAL -->
                <p:dialog id="dialogEstudo" header="Detalhes Proposta - Estudo Inicial" widgetVar="propostaDialogEstudo" resizable="true" dynamic="true" 
                          position="left,top" onHide="PF('propostaDialogEstudo').hide(); propostaDialogEstudo.toggleMaximize();" maximizable="true" onShow="javascript:fixPFDialogToggleMaximize(propostaDialogEstudo);">

                    <p:panel id="panelDetalheEstudo" style="text-align: left; ">
                        <p:panelGrid id="displayEstudo" style="text-align: left; width: 100%;">
                            <f:facet name="header">
                                <p:row>
                                    <p:column colspan="6">
                                        <h:outputText value="DADOS DO TERRENO" style="font-weight:bold;" />
                                    </p:column>
                                </p:row>
                            </f:facet>

                            <p:row>
                                <p:column colspan="5">
                                    <h:outputText value="Numero Proposta: #{propostaBean.selectedProposta.numProposta}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="Assunto:" />
                                </p:column>
                                <p:column>
                                    <h:outputText id="inDescricaoEstudo" value="#{propostaBean.selectedProposta.dscProposta}" style="width:500px; font-weight:bold; " />
                                </p:column>

                                <p:column>
                                    <h:outputText value="Arquiteto:" />
                                </p:column>
                                <p:column colspan="3">
                                    <h:outputText id="inArquitetoEstudo" value="#{propostaBean.selectedProposta.idEmpreendimento.nomArquiteto}" style="width:300px; font-weight:bold; " />
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="Cliente:" />
                                </p:column>

                                <p:column>
                                    <h:outputText id="inClienteEstudo" value="#{propostaBean.selectedProposta.idCliente.nomFantasia}" 
                                                  style="width:500px; font-weight:bold; " />
                                </p:column>

                                <p:column>
                                    <h:outputText value="Data Proposta:" />
                                </p:column>

                                <p:column colspan="3">
                                    <h:outputText id="imDatAbertEstudo" value="#{propostaBean.selectedProposta.datProposta}" style="font-weight:bold;">
                                        <f:convertDateTime type="date" dateStyle="short" pattern="dd/MM/yyyy" />
                                    </h:outputText>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="Endereços:" />
                                </p:column>

                                <p:column>
                                    <ui:repeat value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList}" var="end">
                                        <h:outputText value="#{end.codLogradouro.dscLogradouro}, #{end.numEndereco} #{end.dscComplemento} - " style="font-weight:bold;" />
                                    </ui:repeat>
                                </p:column>

                                <p:column>
                                    <h:outputText value="Cidade:" />
                                </p:column>

                                <p:column colspan="3">
                                    <h:outputText value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList.get(0).codLogradouro.codBairro.codCidade.dscCidade}" style="font-weight:bold;" />
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="Contribuinte:" />
                                </p:column>

                                <p:column colspan="5">
                                    <ui:repeat value="#{propostaBean.selectedProposta.idEmpreendimento.empreendimentoEnderecoList}" var="end">
                                        <h:outputText value="#{end.numContribuinte} - " style="font-weight:bold;" />
                                    </ui:repeat>
                                </p:column>
                            </p:row>
                            <p:row>
                                <p:column>
                                    <h:outputText value="QTDE. LOTES:" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="#{propostaBean.selectedProposta.idEmpreendimento.dscLote}" style="font-weight:bold;" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="SUBPREFEITURA:" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.dscSubPrefeitura}" style="font-weight:bold; width: 400px; " />
                                </p:column>

                                <p:column>
                                    <h:outputText value="DISTRITO:" />
                                </p:column>

                                <p:column>
                                    <h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.dscDistrito}" style="font-weight:bold; width: 400px; " />
                                </p:column>
                            </p:row>
                        </p:panelGrid>
                        <p:panelGrid id="display2Estudo" style="text-align: center; width: 100%;">
                            <f:facet name="header">
                                <p:row>
                                    <p:column colspan="19">
                                        <h:outputText value="ZONEAMENTO" style="font-weight:bold;" />
                                    </p:column>
                                </p:row>

                                <p:row>
                                    <p:column colspan="2">ÁREA DO TOTAL TERRENO</p:column>
                                    <p:column colspan="2">ZONEAMENTO:</p:column>
                                    <p:column colspan="4">APROVEITAMENTO - C.A.</p:column>
                                    <p:column colspan="2">TAXA OCUPAÇÃO - T.O.</p:column>
                                    <p:column rowspan="2">COTA GEGRAN</p:column>
                                    <p:column rowspan="2">GABARITO ALTURA ZONEAMENTO</p:column>
                                    <p:column colspan="2" rowspan="2">GABARITO AEROPORTO - COMAR (INFORMAÇÃO DE CASE)</p:column>
                                    <p:column rowspan="2">ÁREA PERMEAVEL</p:column>
                                    <p:column rowspan="2">CATEGORIA DE USO PERMITIDO</p:column>
                                    <p:column rowspan="2">CATEGORIA DA    VIA</p:column>
                                    <p:column colspan="2" rowspan="2">LARGURA DA VIA (M)</p:column>
                                </p:row>

                                <p:row>
                                    <p:column>REAL (M²)</p:column>
                                    <p:column>ESCRITURA (M²)</p:column>
                                    <p:column>ANTERIOR</p:column>
                                    <p:column>ATUAL</p:column>
                                    <p:column colspan="2">BÁSICO</p:column>
                                    <p:column colspan="2">MÁXIMO</p:column>
                                    <p:column colspan="2">PERMITIDA</p:column>
                                </p:row>
                            </f:facet>

                            <p:row>
                                <p:column rowspan="3"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.areaTerrenoReal}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.areaTerrenoEscritura}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.zoneamentoAnterior}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.zoneamentoAtual1}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2" rowspan="2"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.aproveitamentoBasico1}" style="font-weight:bold; height: 14px; " /></p:column>
                                <p:column colspan="2" rowspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.aproveitamentoMaximo1}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2" rowspan="3"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.taxaOcupacaoPermitida}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="3"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.cotaGegran}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.gabaritoZoneamento1}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2" rowspan="3"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.gabaritoComar}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="3"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.areaPermeavel}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.categoriaUsoPermitido1}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="3"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.categoriaVia}" style="font-weight:bold; width: 190px; "  /></p:column>
                                <p:column colspan="2" rowspan="3"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.larguraVia}" style="font-weight:bold; width: 190px; " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.zoneamentoAtual2}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.categoriaUsoPermitido2}" style="font-weight:bold; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.zoneamentoAtual3}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.aproveitamentoBasico2}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.aproveitamentoMaximo2}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.gabaritoZoneamento2}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.categoriaUsoPermitido3}" style="font-weight:bold; height: 14px;  " /></p:column>
                            </p:row>
                        </p:panelGrid>
                        <p:panelGrid id="display3Estudo" style="text-align: center; width: 100%;">
                            <f:facet name="header">
                                <p:row>
                                    <p:column colspan="19" width="2317">DADOS DO EMPREENDIMENTO</p:column>
                                </p:row>
                                <p:row>
                                    <p:column colspan="2">CATEGORIA DE USO PRETENDIDO</p:column>
                                    <p:column>USO</p:column>
                                    <p:column>DOAÇÃO</p:column>
                                    <p:column colspan="2">REMANESCENTE</p:column>
                                    <p:column colspan="2">C.A. PROJETO</p:column>
                                    <p:column colspan="2">T.O. PROJETO</p:column>
                                    <p:column colspan="2">QTDE VAGAS PROJETO</p:column>
                                    <p:column>QTDE TORRES</p:column>
                                    <p:column>PAVIMENTOS</p:column>
                                    <p:column>UNID. POR ANDAR</p:column>
                                    <p:column>TOTAL UNIDADES</p:column>
                                    <p:column>M² UNID.</p:column>
                                    <p:column colspan="2">QTDE SUBSOLOS</p:column>
                                </p:row>
                            </f:facet>

                            <p:row>
                                <p:column colspan="2" rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empCategoriaUsoPretendido}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="3" width="105"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empUso}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column width="175"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empDoacao1}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2" rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empRemanescente}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2" rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empCaProjeto}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2" rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empToProjeto}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2" rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empVagasProjeto}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empQdeTorres}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empPavimentos}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empUnidAndar1}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empTotalUnidades1}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empUnid}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column colspan="2" rowspan="3" width="249"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empQdeSubsolo}" style="font-weight:bold; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column width="175"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empDoacao2}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="2"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empUnidAndar2}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column rowspan="2"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empTotalUnidades2}" style="font-weight:bold; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column width="175"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.empDoacao3}" style="font-weight:bold; height: 14px;  " /></p:column>
                            </p:row>
                        </p:panelGrid>
                        <p:panelGrid id="display4Estudo" style="text-align: center; width: 100%;">
                            <f:facet name="header">
                                <p:row>
                                    <p:column colspan="4">QUADRO RESUMO DE ÁREAS</p:column>
                                    <p:column colspan="15">OUTORGA ONEROSA OU CEPAC</p:column>
                                </p:row>
                                <p:row>
                                    <p:column rowspan="3">TOTAL ÁREA CONSTRUÍDA</p:column>
                                    <p:column rowspan="3">TOTAL ÁREA COMPUTÁVEL</p:column>
                                    <p:column rowspan="3">TOTAL ÁREA NÃO COMPUTÁVEL</p:column>
                                    <p:column rowspan="3">ÁREA COMPUTÁVEL ADICIONAL REQUERIDA - ACA  </p:column>
                                    <p:column colspan="10"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outEstoque}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                    <p:column rowspan="2">FP (Fator de Planej. Urbano)</p:column>
                                    <p:column rowspan="2">FS (Fator de interesse social)</p:column>
                                    <p:column colspan="2">B = (VT/CAbas)</p:column>
                                    <p:column rowspan="2">ACA</p:column>
                                </p:row>
                                <p:row>
                                    <p:column colspan="6">RESIDENCIAL (M²) </p:column>
                                    <p:column colspan="4">NÃO RESIDENCIAL (M²)</p:column>
                                    <p:column>VALOR VENAL</p:column>
                                    <p:column>CAbas</p:column>
                                </p:row>
                            </f:facet>

                            <p:row>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outAreaConstruida}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outAreaComputavel}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outAreaNaoComputavel}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outAreaAca}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column style="font-weight:bold;">TOTAL:</p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outResidencialTotal}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column style="font-weight:bold;">COMPROM.: </p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outComprom}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column style="font-weight:bold;">TOTAL:</p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outNaoResidencialTotal}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column style="font-weight:bold;">COMPROM.: </p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outNaoResidencialComprom}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outFatorPlanej}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outFatorInteresse}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outValorVenal}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outCabas}" style="font-weight:bold; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outAca}" style="font-weight:bold; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column colspan="4">-</p:column>
                                <p:column colspan="10"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.outNaoResidencialTabela}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column colspan="5">-</p:column>
                            </p:row>
                        </p:panelGrid>
                        <p:panelGrid id="display5Estudo" style="text-align: center; width: 100%;">
                            <f:facet name="header">
                                <p:row>
                                    <p:column colspan="19">LEGISLAÇÃO / ÓRGÃOS</p:column>
                                </p:row>
                                <p:row>
                                    <p:column>CONPRESP</p:column>
                                    <p:column>CONDEPHAAT</p:column>
                                    <p:column>IPHAN</p:column>
                                    <p:column>ZEPEC</p:column>
                                    <p:column>ZEIS (5)</p:column>
                                    <p:column>CAIEPS / CTLU</p:column>
                                    <p:column colspan="2">ÁREA VERDE OU ZEPAM</p:column>
                                    <p:column colspan="2">CEUSO (6)</p:column>
                                    <p:column colspan="2">COMAR</p:column>
                                    <p:column>OPERAÇÃO URBANA CONSOLIDADA</p:column>
                                    <p:column>AIU</p:column>
                                    <p:column>SMT PÓLO GERADOR  (2)</p:column>
                                    <p:column>GRAPROHAB (3)</p:column>
                                    <p:column>SIURB MELHORAMENTO VIÁRIO</p:column>
                                    <p:column>PATRIMÔNIO AMBIENTAL - TOMBAMENTO ÓRGÃO AMBIENTAL.</p:column>
                                    <p:column>ÁREA PROTEÇÃO AMBIENTAL</p:column>
                                </p:row>
                            </f:facet>

                            <p:row>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legConpresp}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legCondephaat}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legIphan}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legZepec}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legZeis}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legCaieps}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legZepam}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legCeuso}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legComar}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legUrbanaConsolidada}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legAiu}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legSmt}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legGraprohab}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legSiurb}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legPatrimonio}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legAreaProtecaoAmbiental}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column styleClass="ui-widget-header" rowspan="3">PARSOLO (7)</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">DEPAVE</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">CETESB</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">DECONT</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">CÓRREGO</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">RIVI    (1)</p:column>
                                <p:column styleClass="ui-widget-header"  colspan="2" rowspan="3">RECUO ESPECIAL</p:column>
                                <p:column styleClass="ui-widget-header"  colspan="2" rowspan="3">OUTORGA ONEROSA  -SMDU</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">CEPAC´S    - EMURB</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">PARQUE    LINEAR</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">CAMINHO    VERDE</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">PROTEÇÃO    MANANCIAL</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">AET -    Área Especial de Tráfego. (4)</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">LOTEAMENTO</p:column>
                                <p:column styleClass="ui-widget-header"  rowspan="3">ENVOLTÓRIO    DE VILA</p:column>
                                <p:column styleClass="ui-widget-header"  colspan="2" rowspan="3">RUA SEM SAÍDA</p:column>
                            </p:row>
                            <p:row> </p:row>
                            <p:row> </p:row>
                            <p:row>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legParsolo}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legDepave}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legCetesb}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legDecont}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legCorrego}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legRivi}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legRecuoEspecial}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legOutorga}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legCepacEmurb}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legParqueLinear}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legCaminhoVerde}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legProtecaoManancial}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legAet}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legLoteamento}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legEnvoltorio}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                                <p:column colspan="2"><h:outputText  value="#{propostaBean.selectedProposta.propostaEstudoInicial.legRua}" style="font-weight:bold; width: 100%; height: 14px;  " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column styleClass="ui-widget-header" colspan="19">Observação</p:column>
                            </p:row>
                            <p:row>
                                <p:column colspan="19"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.legObs}" style="font-weight:bold; width: 100%; " /></p:column>
                            </p:row>
                        </p:panelGrid>
                        <p:panelGrid id="display6Estudo" style="text-align: center; width: 100%;">
                            <f:facet name="header">
                                <p:row>
                                    <p:column colspan="4">NOTAS</p:column>
                                </p:row>
                                <p:row>
                                    <p:column>(1) RIVI - RELATÓRIO DE IMPACTO DE VIZINHAÇA</p:column>
                                    <p:column>(2) SMT (SECRETARIA MUNICIPAL DE TRANSPORTES) - PGT (POLO GERADORES DE TRÁFEGO):</p:column>
                                    <p:column>(3) GRAPROHAB (GRUPO DE ANÁLISE E APROVAÇÃO DE PROJETOS HABITACIONAIS).</p:column>
                                    <p:column>(4) AET - SÃO CONSIDERADAS ÁREAS ESPECIAIS DE TRÁFEGO - AET:</p:column>
                                </p:row>
                            </f:facet>

                            <p:row>
                                <p:column rowspan="3"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.legNota1}" style="font-weight:bold; width: 100%; " /></p:column>
                                <p:column rowspan="5"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.legNota2}" style="font-weight:bold; width: 100%; " /></p:column>
                                <p:column rowspan="5"><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.legNota3}" style="font-weight:bold; width: 100%; " /></p:column>
                                <p:column><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.legNota4}" style="font-weight:bold; width: 100%; " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column styleClass="ui-widget-header" colspan="19">(5) HIS E HMP</p:column>
                            </p:row>
                            <p:row>
                                <p:column><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.legNota5}" style="font-weight:bold; width: 100%; " /></p:column>
                            </p:row>
                            <p:row>
                                <p:column styleClass="ui-widget-header">PARSOLO (7)</p:column>
                                <p:column styleClass="ui-widget-header" colspan="19">(6) CEUSO</p:column>
                            </p:row>
                            <p:row>
                                <p:column><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.legNota7}" style="font-weight:bold; width: 100%; " /></p:column>
                                <p:column><h:outputText value="#{propostaBean.selectedProposta.propostaEstudoInicial.legNota6}" style="font-weight:bold; width: 100%; " /></p:column>
                            </p:row>
                        </p:panelGrid>
                        <p:commandButton icon="ui-icon-closethick" value="Fechar" onclick="PF('propostaDialogEstudo').hide();" title="Fecha Janela Estudo Inicial!" />
                    </p:panel>
                </p:dialog>
            </p:panel>
        </h:form>
    </ui:define>
</ui:composition>